import request from '@/utils/request'

// 查询厂家列表
export function listProducer(query) {
  return request({
    url: '/drug/producer/list',
    method: 'get',
    params: query
  })
}

// 查询厂家详细
export function getProducer(proId) {
  return request({
    url: '/drug/producer/' + proId,
    method: 'get'
  })
}

// 新增厂家
export function addProducer(data) {
  return request({
    url: '/drug/producer',
    method: 'post',
    data: data
  })
}

// 修改厂家
export function updateProducer(data) {
  return request({
    url: '/drug/producer',
    method: 'put',
    data: data
  })
}

// 删除厂家
export function delProducer(proId) {
  return request({
    url: '/drug/producer/' + proId,
    method: 'delete'
  })
}
